#include "hplcsparklinkautosamplersendpacket.h"
#include "hplcsparklinkautosamplerprotocoldata.h"
#include "hplcsparklinkautosamplerpfcid.h"
#include "hplcsparklinkpacketformat.h"
#include "hplcsparklinkmakepacket.h"
#include "hplcsparklinkcheckpacket.h"

namespace hplc
{
namespace sparklink
{

HplcSparkLinkAutoSamplerSendPacket::HplcSparkLinkAutoSamplerSendPacket(HplcSparkLinkAutoSamplerProtocolData &data, QObject *parent)
    : BaseSendPacket (data, parent)
{

}

HplcSparkLinkAutoSamplerSendPacket::~HplcSparkLinkAutoSamplerSendPacket()
{

}

void HplcSparkLinkAutoSamplerSendPacket::P_analysisTime(quint8 hour, quint8 minute, quint8 second)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_AnalysisTime);
    maker->addSpace(1);
    maker->add_10(hour);
    maker->add_100(minute);
    maker->add_100(second);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_analysisTime()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_AnalysisTime);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_AnalysisTime);
}

void HplcSparkLinkAutoSamplerSendPacket::SA_analysisTime()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendActualValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_AnalysisTime);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_AnalysisTime);
}

void HplcSparkLinkAutoSamplerSendPacket::P_loopVolume(quint16 volume)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_LoopVolume);
    maker->addSpace(2);
    maker->add_10000(volume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_loopVolume()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_LoopVolume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_LoopVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::P_firstSamplePosition(quint8 plateNumber, quint8 columnNumber, quint8 rowNumber)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_FirstSamplePosition);
    maker->addSpace(1);
    maker->add_10(plateNumber);
    maker->add_100(columnNumber);
    maker->add_100(rowNumber);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_firstSamplePosition()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_FirstSamplePosition);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_FirstSamplePosition);
}

void HplcSparkLinkAutoSamplerSendPacket::P_lastSamplePosition(quint8 plateNumber, quint8 columnNumber, quint8 rowNumber)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_LastSamplePosition);
    maker->addSpace(1);
    maker->add_10(plateNumber);
    maker->add_100(columnNumber);
    maker->add_100(rowNumber);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_lastSamplePosition()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_LastSamplePosition);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_LastSamplePosition);
}

void HplcSparkLinkAutoSamplerSendPacket::P_flushVolume(quint16 volume)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_FlushVolume);
    maker->addSpace(2);
    maker->add_10000(volume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_flushVolume()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_FlushVolume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_FlushVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::P_numberOfInjectionsOrSample(quint8 number)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_NumberOfInjectionsOrSample);
    maker->addSpace(5);
    maker->add_10(number);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_numberOfInjectionsOrSample()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_NumberOfInjectionsOrSample);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_NumberOfInjectionsOrSample);
}

void HplcSparkLinkAutoSamplerSendPacket::SA_numberOfInjectionsOrSample()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendActualValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_NumberOfInjectionsOrSample);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_NumberOfInjectionsOrSample);
}

void HplcSparkLinkAutoSamplerSendPacket::P_injectionMode(quint8 mode)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_InjectionMode);
    maker->addSpace(5);
    maker->add_10(mode);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_injectionMode()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_InjectionMode);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_InjectionMode);
}

void HplcSparkLinkAutoSamplerSendPacket::P_syringeVolume(quint16 volume)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SyringeVolume);
    maker->addSpace(1);
    maker->add_100000(volume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_syringeVolume()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_SyringeVolume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SyringeVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::P_tubingVolume(quint16 volume)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_TubingVolume);
    maker->addSpace(3);
    maker->add_1000(volume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_tubingVolume()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_TubingVolume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_TubingVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::P_firstTransportVial(quint8 plateNumber, quint16 number)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_FirstTransportVial);
    maker->addSpace(1);
    maker->add_10(plateNumber);
    maker->add_10000(number);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_firstTransportVial()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_FirstTransportVial);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_FirstTransportVial);
}

void HplcSparkLinkAutoSamplerSendPacket::P_lastTransportVial(quint8 plateNumber, quint16 number)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_LastTransportVial);
    maker->addSpace(1);
    maker->add_10(plateNumber);
    maker->add_10000(number);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_lastTransportVial()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_LastTransportVial);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_LastTransportVial);
}

void HplcSparkLinkAutoSamplerSendPacket::P_sampleNeedleHeight(quint8 level)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SampleNeedleHeight);
    maker->addSpace(4);
    maker->add_100(level);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_sampleNeedleHeight()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_SampleNeedleHeight);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SampleNeedleHeight);
}

void HplcSparkLinkAutoSamplerSendPacket::P_syringeSpeed(quint8 level)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SyringeSpeed);
    maker->addSpace(5);
    maker->add_10(level);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_syringeSpeed()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_SyringeSpeed);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SyringeSpeed);
}

void HplcSparkLinkAutoSamplerSendPacket::P_syringeSpeedScaleFactor(quint8 factor)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SyringeSpeedScaleFactor);
    maker->addSpace(4);
    maker->add_100(factor);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_syringeSpeedScaleFactor()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_SyringeSpeedScaleFactor);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SyringeSpeedScaleFactor);
}

void HplcSparkLinkAutoSamplerSendPacket::P_bufferVolume(quint16 volume)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_BufferVolume);
    maker->addSpace(2);
    maker->add_10000(volume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply();
}

void HplcSparkLinkAutoSamplerSendPacket::SP_bufferVolume()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_BufferVolume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_BufferVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::SA_actualSampleNumber()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendActualValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_ActualSampleNumber);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_ActualSampleNumber);
}

void HplcSparkLinkAutoSamplerSendPacket::SA_status()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendActualValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_Status);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_Status);
}

void HplcSparkLinkAutoSamplerSendPacket::SA_errorCode()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendActualValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_ErrorCode);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_ErrorCode);
}

void HplcSparkLinkAutoSamplerSendPacket::C_resetErrorCode(quint8 flag)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_ResetErrorCode);
    maker->addSpace(5);
    maker->add_10(flag);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_ErrorCode);
}

void HplcSparkLinkAutoSamplerSendPacket::P_airSegment(quint8 isUsed)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_AirSegment);
    maker->addSpace(5);
    maker->add_10(isUsed);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_ErrorCode);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_airSegment()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_AirSegment);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_AirSegment);
}

void HplcSparkLinkAutoSamplerSendPacket::P_skipMissingSamplePosition(quint8 flag)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SkipMissingSamplePosition);
    maker->addSpace(5);
    maker->add_10(flag);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SkipMissingSamplePosition);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_skipMissingSamplePosition()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_SkipMissingSamplePosition);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SkipMissingSamplePosition);
}

void HplcSparkLinkAutoSamplerSendPacket::P_headSpacePressure(quint8 flag)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_HeadSpacePressure);
    maker->addSpace(5);
    maker->add_10(flag);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_HeadSpacePressure);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_headSpacePressure()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_HeadSpacePressure);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_HeadSpacePressure);
}

void HplcSparkLinkAutoSamplerSendPacket::P_resetOutputAfterSerials(quint8 flag)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_ResetOutputAfterSerials);
    maker->addSpace(5);
    maker->add_10(flag);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_ResetOutputAfterSerials);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_resetOutputAfterSerials()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_ResetOutputAfterSerials);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_ResetOutputAfterSerials);
}

void HplcSparkLinkAutoSamplerSendPacket::P_usePrepMode(quint8 flag)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_UsePrepMode);
    maker->addSpace(5);
    maker->add_10(flag);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_UsePrepMode);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_usePrepMode()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_UsePrepMode);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_UsePrepMode);
}

void HplcSparkLinkAutoSamplerSendPacket::P_traySegmentSettings(quint8 leftTrayType, quint8 rightTrayType, quint8 leftType, quint8 rightType)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_TraySegmentSettings);
    maker->addSpace(2);
    maker->add_10(leftTrayType);
    maker->add_10(rightTrayType);
    maker->add_10(leftType);
    maker->add_10(rightType);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_TraySegmentSettings);
}

void HplcSparkLinkAutoSamplerSendPacket::P_traySegmentSettings_SinglePlate(quint8 type)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_TraySegmentSettings);
    maker->addSpace(4);
    maker->add_100(type);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_TraySegmentSettings);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_traySegmentSettings()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_TraySegmentSettings);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_TraySegmentSettings);
}

void HplcSparkLinkAutoSamplerSendPacket::P_syncCondition(quint8 syncWithNextInjection, quint8 syncWithLoad, quint8 syncWithInject, quint8 syncWithValveWash)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SyncCondition);
    maker->addSpace(2);
    maker->add_10(syncWithNextInjection);
    maker->add_10(syncWithLoad);
    maker->add_10(syncWithInject);
    maker->add_10(syncWithValveWash);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SyncCondition);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_syncCondition()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_SyncCondition);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SyncCondition);
}

void HplcSparkLinkAutoSamplerSendPacket::P_injectionVolume(quint16 volume)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_InjectionVolume);
    maker->addSpace(1);
    maker->add_100000(volume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_InjectionVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_injectionVolume()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_InjectionVolume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_InjectionVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::P_washBetween(quint8 between)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_WashBetween);
    maker->addSpace(5);
    maker->add_10(between);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_WashBetween);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_washBetween()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_WashBetween);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_WashBetween);
}

void HplcSparkLinkAutoSamplerSendPacket::P_washTimes(quint8 steps, quint8 times)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(steps);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_WashTimes);
    maker->addSpace(5);
    maker->add_10(times);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_WashTimes);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_washTimes(quint8 steps)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(steps);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_WashTimes);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_WashTimes);
}

void HplcSparkLinkAutoSamplerSendPacket::P_washSyringeValveSolventPort(quint8 step, quint8 port)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(step);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_WashSyringeValveSolventPort);
    maker->addSpace(5);
    maker->add_10(port);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_WashSyringeValveSolventPort);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_washSyringeValveSolventPort(quint8 step)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(step);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_WashSyringeValveSolventPort);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_WashSyringeValveSolventPort);
}

void HplcSparkLinkAutoSamplerSendPacket::P_fillTransportPositionTimes(quint8 port, quint8 times)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_FillTransportPositionTimes);
    maker->addSpace(3);
    maker->add_10(port);
    maker->add_10(0);
    maker->add_10(times);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_FillTransportPositionTimes);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_fillTransportPositionTimes()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_FillTransportPositionTimes);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_FillTransportPositionTimes);
}

void HplcSparkLinkAutoSamplerSendPacket::P_washVolume(quint8 step, quint16 volume)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(step);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_WashVolume);
    maker->addSpace(2);
    maker->add_10000(volume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_WashVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_washVolume(quint8 step)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(step);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_WashVolume);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_WashVolume);
}

void HplcSparkLinkAutoSamplerSendPacket::P_useInMethod(quint8 usedTimedEvents, quint8 usedMix)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_UseInMethod);
    maker->addSpace(4);
    maker->add_10(usedTimedEvents);
    maker->add_10(usedMix);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_UseInMethod);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_useInMethod()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_UseInMethod);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_UseInMethod);
}

void HplcSparkLinkAutoSamplerSendPacket::P_serialNumber(quint32 serial)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SerialNumber);
    maker->add_1000000(serial);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SerialNumber);
}

void HplcSparkLinkAutoSamplerSendPacket::SP_serialNumber()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendProgrammedValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_SerialNumber);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SerialNumber);
}

void HplcSparkLinkAutoSamplerSendPacket::P_clearMixOrUserProg(quint8 flag)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_ClearMixOrUserProg);
    maker->addSpace(5);
    maker->add_10(flag);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SerialNumber);
}

void HplcSparkLinkAutoSamplerSendPacket::P_clearMethod(quint8 flag)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_ClearMethod);
    maker->addSpace(5);
    maker->add_10(flag);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_ClearMethod);
}

void HplcSparkLinkAutoSamplerSendPacket::C_startOrStop_01(quint8 startUserProgram, quint8 start)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_StartOrStop);
    if (start)
    {
        maker->add_10(startUserProgram);
        maker->addSpace(4);
        maker->add_10(start);
    }
    else
    {
        maker->add_1000000(start);
    }
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_StartOrStop);
}

void HplcSparkLinkAutoSamplerSendPacket::C_startOrStop_02()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x02);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_StartOrStop);
    maker->add_1000000(0);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_StartOrStop);
}

void HplcSparkLinkAutoSamplerSendPacket::C_holdOrContinue(quint8 isHold)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_HoldOrContinue);
    maker->addSpace(5);
    maker->add_10(isHold);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_HoldOrContinue);
}

void HplcSparkLinkAutoSamplerSendPacket::C_searchSamplePosition(quint8 plateNumber, quint16 platePosition)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SearchSamplePosition);
    maker->addSpace(1);
    maker->add_10(plateNumber);
    maker->add_10000(platePosition);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_SearchSamplePosition);
}

void HplcSparkLinkAutoSamplerSendPacket::C_initialWash(quint8 port, quint8 isStart)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_InitialWash);
    maker->addSpace(4);
    maker->add_10(port);
    maker->add_10(isStart);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_InitialWash);
}

void HplcSparkLinkAutoSamplerSendPacket::C_moveSyringe(quint8 position)
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_MoveSyringe);
    maker->addSpace(5);
    maker->add_10(position);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_MoveSyringe);
}

void HplcSparkLinkAutoSamplerSendPacket::SA_doorSensor()
{
    HplcSparkLinkAutoSamplerProtocolData *d = static_cast<HplcSparkLinkAutoSamplerProtocolData*>(this->m_d);
    HplcSparkLinkMakePacket *maker = d->m_maker;
    maker->preMakePacket();
    maker->addId();
    maker->addAi(0x01);
    maker->addPfc(HplcSparkLinkAutoSamplerPfcId_SendActualValue);
    maker->addSpace(2);
    maker->add_10000(HplcSparkLinkAutoSamplerPfcId_DoorSensor);
    maker->postMakePacket();

    d->m_checker->send();
    d->m_checker->waitReply(HplcSparkLinkAutoSamplerPfcId_DoorSensor);
}


} // sparklink
} // hplc
